package org.fu.crowd.service.api;

import com.github.pagehelper.PageInfo;
import org.fu.crowd.entity.Admin;

import java.util.List;

public interface AdminService {
    int saveAdmin(Admin admin);

    List<Admin> getAll();


    Admin getAdminByAcctAndPsw(Admin admin);


    PageInfo<Admin> getPageInfo(String keyword , Integer pageNum , Integer pageSize);


    void removeUser(Integer id);

    Admin getAdminById(Integer id);

    void update(Admin admin);


    Admin getAdminByLoginAcct(String username);
}
